<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"  %>
  <%@ taglib prefix="c" uri="http://java.sun.com/jstl/core_rt"%>
<%@ page import="java.util.List"%><%@ page import="java.util.Arrays"%>
<%@ page import="java.sql.*"%>
    
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Topics Home Page</title>

<style type="text/css">
body {
	background-color: #FFE4E1;
}
</style>

</head>
<body>
<%@include file="header.jsp"%>
<br>
<%@include file="Page.jsp" %>
<center><h1><b>TOPIC HOME PAGE</b></h1></center><br/>


<form action="toppicCreate.jsp">
<center>
<h1><input type="submit" value=" Create New Topic"/></h1>
</center>
</form>

 
<table border="3" cellpadding="5" cellspacing="3" align="center">
<tr>
<td><b>Topic ID</b></td>
<td><b>Topic Name</b></td>
<td><b>Category</b></td>
<td><b>Description</b></td>
<td><b>Status</b></td>
<td></td>
<td></td>
</tr>

<c:forEach items="${a}" var="i">

<tr>
<td> ${i.topicId}
  </td>
<td>
${i.topicName} 
</td>
<td>
${i.category}
</td>
<td>
${i.description}
</td>
<td>
${i.status}
</td>
<td><a href="/EventManagementSystem/StatusModify.jsp?topicscode=${i.topicId}">Change Status</a></td>
<td><a href="/EventManagementSystem/TopicModifyServlet?topicscode=${i.topicId}">Modify this topic</a></td>

</tr>

</c:forEach>


</table>

<form action="/EventManagementSystem/TopicModifyServlet">

</form>

</body>
</html>
